<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">Lịch sử câu hỏi</h1>
    </div>
    <!-- /.col-lg-12 -->

    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong><?php echo $data['data']->tvshow_name?></strong>
                <span class="time"> /// Phát sóng ngày: <strong style="color: #ff0000"><?php $date = new DateTime(); $date->setTimestamp($data['data']->time_start); echo $date->format('d/m/Y')?></strong></span>
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr>
                                <th>STT</th>
                                <th>Câu hỏi</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 0; foreach($data['question'] AS $key=>$value): $i=$i+1;?>
                                <tr>
                                    <td><?php echo $i?></td>
                                    <td><?php $content = json_decode($value->content); echo $content->question?></td>
                                </tr>
                            <?php endforeach;?>
                        </tbody>
                    </table>
                </div>
                <!-- /.table-responsive -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /table -->
    </div>
    <!-- /.col-lg-12 -->
</div>